package com.gdones.common.core.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * 请求返回实体
 * 2023/4/27
 */
@Data
public class MyResult implements Serializable {

    private String code = "0000";
    private String msg;
    private Object data;

    public MyResult(){}

    /**
     * 返回实体构造器
     * @param code 状态码
     * @param msg 消息
     */
    public MyResult(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    /**
     * 返回实体构造器
     * @param msg 消息
     */
    public MyResult(String msg){
        this.msg = msg;
    }

}
